//
//  GGTUserTableViewCell.m
//  GGT
//
//  Created by 空空空 on 14/11/3.
//  Copyright (c) 2014年 GGT. All rights reserved.
//

#import "GGTUserTableViewCell.h"

@implementation GGTUserTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.userImgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width,160)];
        [self.contentView addSubview:self.userImgView];
        self.headImgView = [[UIImageView alloc]initWithFrame:CGRectMake(80, 60, 60, 60)];
        [self.contentView addSubview:self.headImgView];
        self.userNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(140, 120, 80, 40)];
        [self.contentView addSubview:self.userNameLabel];
        
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
//    self.userImgView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    self.userImgView.image = [UIImage imageNamed:@"userimg.jpg"];
//    self.headImgView.frame = CGRectMake(self.contentView.frame.size.width / 2, 0, self.contentView.frame.size.width / 5, self.contentView.frame.size.height / 3 * 2);
//    self.headImgView.image = [UIImage imageNamed:@""];
//    self.userNameLabel.frame = CGRectMake(self.contentView.frame.size.height / 2, self.contentView.frame.size.height / 3 * 2, self.contentView.frame.size.width / 5, self.contentView.frame.size.height / 3);
//    self.userNameLabel.text = @"请登录";
    
}
- (void)awakeFromNib {
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)dealloc
{
    [_headImgView release];
    [_userImgView release];
    [_userNameLabel release];
    [super dealloc];
}
@end
